import fetch from '../utils/fetch'

/**
 * 顾问接收邀请
 * @params 
 * adviserId：顾问id; 测试id: 2019010822384476226
 * mobile:手机号码；
 * code：验证码
 */
export function adviserAcceptInvitation(data) {
    return fetch({
        url: '/ygsj/adviser/adviserAcceptInvitation',
        method: 'post',
        data: data
    })
}

/**
 * 下单流程中顾问数据
 * @param {designerId} 设计师id
 */
export function orderToAdviser(designerId) {
    return fetch({
        url: '/ygsj/adviser/orderToAdviser/' + designerId,
        method: 'get',
    })
}

/**
 * 查询顾问圈信息列表
 */
export function queryAdviserList() {
    return fetch({
        url: '/ygsj/adviser/queryAdviserList',
        method: 'get',
    })
}

/**
 * 通过顾问id查询顾问信息
 * @param id 订单id
 */
export function queryAdviserById(id) {
    return fetch({
        url: '/ygsj/adviser/queryAdviserById/' + id,
        method: 'get',
    })
}

